<template>
	<view class="container">
		<!-- <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
			:duration="duration">
			<swiper-item>
				<image src="@/static/1.png" mode="" class="img"></image>
			</swiper-item>
			<swiper-item>
				<image src="@/static/1.png" mode="" class="img"></image>
			</swiper-item>
		</swiper>
		<view class="content">
			<view class="box">
				<view class="item">
					<image src="@/static/my.png" mode="" class="img"></image>
					<view class="text">
						运动户外
					</view>
				</view>
				<view class="item">
					<image src="@/static/my.png" mode="" class="img"></image>
					<view class="text">
						电脑办公
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item">
					<image src="@/static/1.png" mode="" class="img"></image>
					<view class="text">
						包邮不锈钢筷子上墙带钩筷子架筷子筒收纳置物架沥水架子不包发票
					</view>
					<view class="bottom">
						<view class="prize">
							￥9.9
						</view>
						<view class="buy-info">
							300+人已买
						</view>
					</view>
				</view>
				<view class="item">
					<image src="@/static/1.png" mode="" class="img"></image>
					<view class="text">
						包邮不锈钢筷子上墙带钩筷子架筷子筒收纳置物架沥水架子不包发票
					</view>
					<view class="bottom">
						<view class="prize">
							￥9.9
						</view>
						<view class="buy-info">
							300+人已买
						</view>
					</view>
				</view>
				<view class="item">
					<image src="@/static/1.png" mode="" class="img"></image>
					<view class="text">
						包邮不锈钢筷子上墙带钩筷子架筷子筒收纳置物架沥水架子不包发票
					</view>
					<view class="bottom">
						<view class="prize">
							￥9.9
						</view>
						<view class="buy-info">
							300+人已买
						</view>
					</view>
				</view>
			</view>
		</view> -->
	</view>
</template>

<script setup>
	import {
		ref,
		reactive,
		onMounted,
		unref,
		toRaw,
		toRefs,
		nextTick
	} from 'vue'
	import {
		onInit,
		onLoad,
		onReady,
		onShow,
		onHide,
		onUnload,
		onResize,
	} from '@dcloudio/uni-app'
	import {
		$http
	} from "@/common"
	const indicatorDots = ref(true)
	const autoplay = ref(false)
	const interval = ref(2000)
	const duration = ref(500)
</script>

<style lang="scss" scoped>
	.container {
		min-height: 100vh;
		background-color: #F9F9F9;
	}

	.swiper {
		height: 500rpx;

		.img {
			height: 500rpx;
			width: 100%;
		}
	}

	.content {
		padding: 20rpx;

		.box {
			display: flex;
			background-color: #fff;
			box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);
			padding: 20rpx;

			.item {
				color: #999999;
				text-align: center;
				width: 25%;

				.img {
					width: 90rpx;
					height: 90rpx;
					margin-bottom: 10rpx;
				}

				.text {
					font-size: 24rpx;
				}
			}
		}

		.list {
			padding: 20rpx;
            display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			.item {
				background-color: #fff;
				width: 48%;
                margin-bottom: 20rpx;
				border-radius: 10rpx;
				.img {
					width: 100%;
				}

				.text {
					padding: 10rpx;
					font-size: 24rpx;
				}

				.bottom {
					padding: 10rpx;
					display: flex;
                    align-items: center;
					.prize {
						font-size: 26rpx;
						color: #ff4142;
						margin-right: 4rpx;
					}

					.buy-info {
						font-size: 24rpx;
						color: #999999;
					}
				}
			}
		}
	}
</style>